package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.FieldContentVo;
import com.zb.entity.ZjNetworkFieldContent;

import java.util.List;

/**
 * <p>
 * 网点字段内容表，当zj_network_field表字段type=3/4时，单选/多选内容存入此表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-10-18
 */
public interface ZjNetworkFieldContentService extends IService<ZjNetworkFieldContent> {

    /**
     * 保存、修改、删除字段内容
     * @param custAccId 商家ID
     * @param networkFieldId 服务商字段表ID
     * @param contents 单选/多选内容
     * @param ids
     */
    void save(Long custAccId, Long networkFieldId, List<FieldContentVo> contents, List<Long> ids);

    /**
     * 根据服务商字段ID获取单选/多选内容
     * @param networkFieldIds 服务商字段ID
     * @return
     */
    List<ZjNetworkFieldContent> getByNetworkFieldIds(List<Long> networkFieldIds);


    /**
     * 根据服务商字段ID获取单选/多选内容
     * @param networkFieldId 服务商字段ID
     * @return
     */
    List<ZjNetworkFieldContent> getByNetworkFieldId(Long networkFieldId);

    /**
     * 根据服务商字段ID删除
     * @param networkFieldIds
     */
    void deleteBatchByNetworkFieldIds(List<Long> networkFieldIds);
}
